# 封装被测试系统接口
# 定义接口类
import requests
import config
class LoginApi(object):
    # 初始化
    def __init__(self):
        self.login_url = config.URL+"/api/sys/login"
    # 登录接口
    def login(self,username,password):
        json ={"mobile":username,"password":password}
        return requests.post(url=self.login_url,json=json)

if __name__ == '__main__':
    result =LoginApi().login("13800000002","123456")
    print(result.json())


